<template>
  <div class="comment">
    <el-card @click="commentclick" class="box-card" v-if="istrue"
      >查看全部回答</el-card
    >
  </div>
</template>

<script >
import { defineComponent } from "vue";

export default defineComponent({
  components: {},
  props: {
    istrue: {
      type: Boolean,
      default: true,
    },
    answers: {
      type: Number,
      default: 0,
    },
  },
  setup(props, { emit }) {
    console.log(props);
    const commentclick = () => {
      emit("SeeFullAnswer");
    };
    return { commentclick };
  },
});
</script>

<style scoped lang="less">
.comment {
  background-color: #f6f6f6;
  width: 695px;
  margin-right: 10px;
  margin-bottom: 10px;
  .box-card {
    text-align: center;
    color: #8590a6;
    cursor: pointer;
    &:hover {
      color: #175199;
    }
  }
}
</style>
